// ValidationAspects
// Written by Mike Saunders
// Released under Microsoft Public License (Ms-PL)
using System;
using ValidationAspects.Factories;
using ValidationAspects.Sdk;

namespace ValidationAspects
{
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
	public sealed class IsEmailAttribute : ValidatorAttribute
	{
		public bool IsStrict { get; set; }

		#region Overrides of ValidatorAttribute
		public override IValidatorFactory Factory
		{
			get { return new IsEmail {IsStrict = IsStrict}; }
		}
		#endregion
	}
}